<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta name="author" content="Pietro Lusso">
<title>Finalministry V2.0</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
</head>
<body>
	<h1>Hello, world!</h1>
	
	How to download a file with Ajax
	
	http://johnculviner.com/jquery-file-download-plugin-for-ajax-like-feature-rich-file-downloads/
	
	
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap.min.js"></script>
	<script src="js/jquery.fileDownload.js"></script>
	<script type="text/javascript">
	$.fileDownload('file:///Applications/junoEE/workspace/FinalministryDesktop/data/EmptyContactList.pdf', {
	    successCallback: function (url) {
	 
	        alert('You just got a file download dialog or ribbon for this URL :' + url);
	    },
	    failCallback: function (html, url) {
	 
	        alert('Your file download just failed for this URL:' + url + '\r\n' +
	                'Here was the resulting error HTML: \r\n' + html
	                );
	    }
	});
	</script>
</body>
</html>